package com.itheima.mOop;

/*
   女朋友
 */
public class GirlFriend {
    private String name;
    private double hight;
    private double weight;
    //建立构造

    public GirlFriend() {
    }

    public GirlFriend(String name, double hight, double weight) {
        this.name = name;
        this.hight = hight;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getHight() {
        return hight;
    }

    public void setHight(double hight) {
        this.hight = hight;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public void wash() {
        System.out.println("女朋友帮我洗衣服");
    }

    public void cook() {
        System.out.println("女朋友给我做饭");
    }

    public void show() {
        System.out.println("我女朋友叫" + name + "身高" + hight + "体重" + weight + "斤");
    }
}

class TestGirlFriend {
    public static void main(String[] args) {
        GirlFriend girlFriend = new GirlFriend("凤姐", 155.0, 130.0);
        girlFriend.show();
        girlFriend.wash();
        girlFriend.cook();
    }
}
